Dynomotion

Group: DynoMotion Message: 12242 From: Peter Tannoury Date: 9/11/2015
Subject: KmotionCNC Spindle CW/CCW and OFF are working during Cycle
Dear Tom,
i installed the new version 4.33n, i'm using kflop + kanalog to control a simple milling machine, i have a small issue regarding the KmotionCNC Spindle Buttons, it's still working and i can turn OFF the spindle during cycle, which is very dangerous,
  I'musing as usually a simple code to turn on and off the spindle using M3 and M4 and M5 from the Mcodes list.
will you please advice how can i let the spindle buttons not working while a g Code cycle is running?
thanks in advance
Peter
Group: DynoMotion Message: 12249 From: Tom Kerekes Date: 9/12/2015
Subject: Re: KmotionCNC Spindle CW/CCW and OFF are working during Cycle
Hi Peter,

I can't think of a simple solution.

We might gray out/disable the Spindle "off" button while GCode is running.  But I wonder if some User might want to be able to turn on/off the "spindle" while the Job is running for whatever reason.

Another option would be to pass as a parameter for the M5 Action whether the Action was initiated from a button or GCode.  The C Program could then decide based on that whether it wants to perform the action or not. 

The M5 action currently just places a 5 into the Var parameter like all other Actions that don't have an associated parameter.    We might set it to 1000005 if initiated from a button.

Does this seem like a good solution?

Regards
TK